# 打开源文件
md_resource = open("README.md", "r")
# 打开新文件
new_md_resource = open("new_README.md", "a")

# 循环读取文件
while True:
    line_content = md_resource.readline()
    if not line_content:
        print("关闭文件")
        break
    new_md_resource.write(line_content)
# 关闭文件
new_md_resource.close()
md_resource.close()